package com.my.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.my.bean.Production;
import com.my.bean.RelationProject;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
  * 产康项目关联映射表 Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-29
 */
public interface RelationProjectMapper extends BaseMapper<RelationProject> {


    List<Map<String, Object>> findCount(@Param("areaid") Long areaid,@Param("admin")boolean admin);
    List<RelationProject> selectRelationProject();
    List<RelationProject> selectRelationProject2();

    //外部
    List<RelationProject> findProjectByUserName(@Param("map") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);
    int findProjectByUserNameCount( @Param("map") Map map,@Param("areaid") Long areaid,@Param("admin")boolean admin);
}